import { io, Socket } from 'socket.io-client';

export let socket: Socket;
export const initWebSocket = () => {
  socket = io('wss://localhost:443');
  socket.on('connect', () => {
    console.log('连接服务器成功');
  });
  window.electron.ipcRenderer.send('ipc:socket-init-success')
};
